package com.ilearn.proxy.cglib;

public class CglibTest {
    public static void main(String[] args) {

        Person instance = null;

        CglibMeipo cglibMeipo = new CglibMeipo();
        try {
            instance = (Person) cglibMeipo.getInstance(Zhangsan.class);
            instance.findLove();

            System.out.println(instance.getClass().getName());

            System.out.println("===================================");
            System.out.println(instance.getClass());

        } catch (Exception e) {
            e.printStackTrace();
        }



    }
}
